package com.zy.dp.bridge.example2;

public class Client
{
	public static void main(String[] args)
	{
		MessageImplementor impl = new MessageEmail();

		AbstractMessage m = new CommonMessage(impl);
		m.sendMessage("请喝一杯茶", "小李");

		m = new UrgencyMessage(impl);
		m.sendMessage("请喝一杯茶", "小李");

		m = new SpecialUrgencyMessage(impl);
		m.sendMessage("请喝一杯茶", "小李");

		impl = new MessageMobile();

		m = new CommonMessage(impl);
		m.sendMessage("请喝一杯茶", "小李");

		m = new UrgencyMessage(impl);
		m.sendMessage("请喝一杯茶", "小李");

		m = new SpecialUrgencyMessage(impl);
		m.sendMessage("请喝一杯茶", "小李");
	}
}
